public class Test {
    public static void main(String[] args) {
        FindSubstring f = new FindSubstring();
        String s = "barfoothefoobarman";
        String[] words = {"foo","bar"};
        f.findSubstring(s, words);
    }
}
